package com.sali.b_design_pattern.g_singleton_pattern.lesson_singleton.a_hungry.thread;

import com.sali.b_design_pattern.g_singleton_pattern.lesson_singleton.a_hungry.B_HungryStaticSingleton;
import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @author: zhang hang
 * @date: 2023/3/19 12:43.
 * @version: 1.0
 */
@Slf4j
public class StaticHungryThread implements Runnable {
    @Override
    public void run() {
        B_HungryStaticSingleton BHungryStaticSingleton = B_HungryStaticSingleton.getInstance();
        log.info(Thread.currentThread().getName() + ":" + BHungryStaticSingleton);
    }
}
